package com.cms.controller.front;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * Controller - ajax
 *
 *
 *
 */
@Slf4j
@Controller("frontAjaxController")
@RequestMapping("/ajax")
public class AjaxController extends BaseController {

    /**
     * ajax
     */
    @RequestMapping
    public String index(String html, ModelMap modelMap) {
        log.info("异步调用....");
        modelMap.addAttribute("html", html);
        return "/templates/"+getCurrentTemplate()+"/"+html;
    }

}
